<?php

namespace app\zhunleweb\controller;


use think\Controller;
use think\Env;

class Agreement extends Controller
{
    /**
     * 隐私政策
     */
    public function privatePolicy()
    {
        return $this->fetch();
    }

    /**
     * 用户协议
     */
    public function user()
    {
        return $this->fetch();
    }

    /**
     * 注销协议
     */
    public function logoutAccount()
    {
        return $this->fetch();
    }

    public function subscribeAgreement()
    {
        return $this->fetch();
    }

    /**
     * 充值协议
     * @return mixed
     */
    public function recharge_agreement()
    {
        $host = Env::get('host.photo');

        $photos = [
            $host . '/mood_note/coin_agreement1.png',
            $host . '/mood_note/coin_agreement2.png',
            $host . '/mood_note/coin_agreement3.png',
            $host . '/mood_note/coin_agreement4.png',
        ];
        return $this->fetch('recharge_agreement', ['photos' => $photos]);
    }
}
